package com.yq.cp.entity.basics;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yq.cp.entity.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * <p>
 * 大区-省市区
 * </p>
 *
 * @author shenyuqing
 * @since 2024-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_area")
public class Area extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 大区-省名
     */
    private String name;

    /**
     * 上一级id  最高级为0
     */
    private Long parentId;
    /**
     * 省的id
     */
    private Long shengId;

    /**
     * 大区
     */
    @TableField(exist = false)
    private String daqu;

    /**
     * 大区id
     */
    @TableField(exist = false)
    private Long daquId;

    /**
     * 省
     */
    @TableField(exist = false)
    private String sheng;

    /**
     * 市
     */
    @TableField(exist = false)
    private String shi;

    /**
     * 区
     */
    @TableField(exist = false)
    private String qu;
}
